<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>表格</title>
</head>
<body>
	<table ondblclick="this.contentEditable=true" border="1" style="border:1px solid blue;width:500px;border-collapse:collapse;">
		<caption>学生信息</caption><!-- 表格标题 -->
		<colgroup><!-- 统一设置列的样式 -->
			<col style="background-color:yellow;withd:30%; ">
			<col style="background-color:red;withd:25%; ">
			<col style="background-color:gray;withd:25%; ">
			<col style="background-color:orange;withd:40%; ">
		</colgroup>
		<thead><!-- 表格的头部 -->
			<tr>
				<th>班级</th>
				<th>学号</th>
				<th>姓名</th>
				<th>成绩</th>
			</tr>
		</thead>
		<tbody><!-- 表格主体 -->
			<tr>
				<td rowspan="4">软件一班</td>
				<td>20122</td>
				<td>李四</td>
				<td>67</td>
			</tr>
			<tr>
				<td>20122</td>
				<td>李四1</td>
				<td>67</td>
			</tr>
			<tr>
				<td>20122</td>
				<td>李四2</td>
				<td>67</td>
			</tr>
			<tr>
				<td>20122</td>
				<td>李四4</td>
				<td>67</td>
			</tr>
		</tbody>
		<tfoot>
			<tr>
				<td colspan="4">总人数为：4</td>
			</tr>
		</tfoot>
	</table>
</body>
</html>